import {
  storeBindingsBehavior
} from "mobx-miniprogram-bindings";
import base from "@src/store/base";

Component({
  behaviors: [storeBindingsBehavior],
  storeBindings: [{
      store: base,
      fields: ['themeColor', 'themeTitleColor']
  }],
  properties: {
    checked: {
      type: Boolean,
      value: false,
      observer: function (v) {
        this.setData({
          isChecked: v
        })
      }
    }
  },
  data: {
    isChecked: false
  }
});